package com.jdrx.sw.sewage.common.enums;

import com.jdrx.sw.sewage.common.constant.Constant;

/**
 * 删除标记枚举
 * Created by zsq on 2019-05-20.
 */
public enum EAlarmStatus {
    UNREAD(0, "未读"),
    PROCESSING(1, "处理中"),
    COMPLETED(2, "已完成"),
    UNREAD_PROCESSING(3, "未读和处理中");

    private Integer key;
    private String value;

    EAlarmStatus(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getName(Integer key) {
        for (EAlarmStatus status : EAlarmStatus.values()) {
            if (key.intValue() == status.getKey()) {
                return status.getValue();
            }
        }
        return Constant.EMPTY;
    }

	public Integer getKey(){
		return key;
	}

	public void setKey(Integer key){
		this.key = key;
	}

	public String getValue(){
		return value;
	}

	public void setValue(String value){
		this.value = value;
	}
}
